﻿@{
    ViewBag.Title = "EditProfiles";
}
@model CRM.Admin.Contracts.Dto.Customer.AreaProfilesDto
@section head
{
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <script type="text/javascript" charset="utf-8" src="~/Content/utf8-net/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="~/Content/utf8-net/ueditor.all.min.js"> </script>
    <script type="text/javascript" charset="utf-8" src="~/Content/utf8-net/lang/zh-cn/zh-cn.js"></script>
    <script type="text/javascript">
        var ue = UE.getEditor('editor');
        UE.getEditor('editor').ready(function () {
            this.setContent('@Html.Raw(Model.Profiles)');
        });
    function SaveData(index) {
          
                var id = $("#Id").val();
                var profiles = UE.getEditor('editor').getContent();
                var dto = { Id: id, profiles: profiles };
                K.AjaxJson("@Url.Content("~/Customer/Marketing/UpdateProfiles")", {Id:id,profiles:profiles}, function (result) {
                    parent.K.layer.callback(index, result, dto);
                    parent.K.layer.close(index);
                });
            }
   
    </script>
}
<form action="" id="linkManForm" name="linkManForm">
    <div class="content-form">
        <table class="content-table">
            <tr>
                <th><span>简介</span></th>
                <td>
                    <input type="hidden" name="Id" id="Id" value="@Model.Id"/>
                    <div>
                        <script id="editor" type="text/plain" style="width:1024px;height:300px;">
                        </script>
                    </div>
                </td>
            </tr>                                                         
        </table>
    </div>
</form>

